package com.test.group6.service.Ipml;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.test.group6.domain.EnterpriseInformation;
import com.test.group6.mapper.EnterpriseSelectMapper;
import com.test.group6.service.EnterpriseSelectService;

@Service
public class EnterpriseSelectServiceImpl implements EnterpriseSelectService {

	@Autowired
	private EnterpriseSelectMapper enterpriseSelectMapper;
	
	/**
	 * @author zhang_sguang
	 * @param index 分页展示的页号
	 * @return {@link List<EnterpriseInformation>}
	 */
	@Override
	public List<EnterpriseInformation> queryAllEnterprise(Integer index) {
		// TODO Auto-generated method stub
		return enterpriseSelectMapper.queryAllEnterprise((index-1)*10);
	}
	
	/**
	 * @author zhang_sguang
	 * @param 无参数
	 * @return {@link Integer}
	 */
	@Override
	public Integer queryCount() {
		return enterpriseSelectMapper.queryCount();
	}
}
